package cn.lqz.bucttrain.service;

import cn.lqz.bucttrain.pojo.dto.PassengerPageQueryDTO;
import cn.lqz.bucttrain.pojo.entity.Passenger;
import cn.lqz.bucttrain.pojo.vo.PageResultVO;
import jakarta.servlet.http.HttpServletResponse;

import java.util.List;

/**
 * 乘客Service
 */
public interface PassengerService {
    /**
     * 查询
     * @param passengerPageQueryDTO
     * @return
     */
    PageResultVO loadPassengerList(PassengerPageQueryDTO passengerPageQueryDTO);

    /**
     * 添加或修改
     * @param passenger
     */
    void addOrUpdatePassenger(Passenger passenger);

    /**
     * 删除乘客
     * @param passengerId
     */
    void deletePassenger(Long passengerId);

    /**
     * 导出乘客excel表
     * @param passengerList
     * @param response
     */
    void exportPassengerExcel(List<Passenger> passengerList, HttpServletResponse response);
}
